package cn.com.open.itembank.common;

import cn.com.open.itembank.service.ItemBankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 *  定时任务
 */
@Component
public class TaskConfig {

    @Autowired
    ItemBankService service;

    @Scheduled(cron = "${app.task.cron}")
    public void onlineExamTransactionHistory(){
        service.addCourseQuestionCount();
    }
}
